<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="utf-8">
    <meta name="viewport">
    <title>Base-@yield('title', 'no title')</title>
</head>
<body>
@if ($errors->any())
    <ul>
        @foreach($errors->all()   as $k=>$error)
            <li>{{$k}}:{{$error}}</li>
        @endforeach
    </ul>
@endif
@error('name')
    <li>用户名：{{$message}}</li>
@enderror
@error('pswd')
<li>密码：{{$message}}</li>
@enderror
{{--    <form action="receive" method="post">--}}
    <form action="check" method="post">
        @csrf
        用户名：<input type="text" name="name">
        用户名：<input type="password" name="pswd">
        <button type="submit">提交</button>
    </form>
</body>
</html>
